FROM java:8

VOLUME /cms
VOLUME /logs
ARG JAR_FILE
COPY ${JAR_FILE} app.jar

EXPOSE 8080

ENTRYPOINT ["java","-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8081,suspend=n", "-jar", "app.jar", "--spring.profiles.active=prd", "--server.port=8080", "> /logs/app.log"]
